package sokoban;


public class Grid implements MapList {
	
	private char[][] grid;
	private boolean[][] targets;
	private String name;
	public  Grid(char[][]grid, boolean[][]targets, String name) {
		this.name=name;
		this.grid=grid;
		this.targets=targets;
	}
	public void setGrid(char[][] grid){
		this.grid=grid;
	}
	public void setTargets(boolean[][] targets){
		this.targets=targets;
	}
	public boolean[][]getTargets(){
		
		return targets;
	}
	public char[][]getGrid(){
		return grid;
	}
	public char getSign(int x, int y){
		return getGrid()[y][x];
	}
	public String getLevelName() {
		return name;
	}
	@Override
	public void updateImages(char c, int x, int y) {
		grid[y][x]=c;

	}
	
	
	
	
}
	

